<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Swing FillLayout</title>
	<link href="../../../book.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>SWT FillLayout</h1>
<table border="0" width="800" cellspacing="1" cellpadding="0">
	<tr>
		<td><b>FillLayout</b> is the simplest layout class. It lays out controls 
		in a single row or column, forcing them to be the same size. Initially, 
		the controls will all be as tall as the tallest control, and as wide as 
		the widest. <b>FillLayout</b> does not wrap, but you can specify margins 
		and spacing. You might use it to lay out buttons in a task bar or tool 
		bar, or to stack checkboxes in a Group. <b>FillLayout</b> can also be 
		used when a <b>Composite</b> only has one child. For example, if a <b>
		Shell</b> has a single Group child, <b>FillLayout</b> will cause the <b>
		Group</b> to completely fill the <b>Shell</b> (if margins are 0).<ul>
		<li><a href="#MainFeatures">Main Features</a></li>
		<li><a href="#GraphicalFeedback">Graphical Feedback</a></li>
	</ul>
    <p></p>
<h2><a name="MainFeatures"></a>Main Features</h2>
            <ul>
              <li>Select <b>FillLayout</b> from the <b>Layouts</b> palette and 
				drop it on a Window or Composite</li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/fl_design_view.gif"></p>
</blockquote>
<ul>
				<li>Graphical feedback is provided for all drop and move 
				interactions</li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/fl_drop1.gif">&nbsp;
				<img border="0" src="images/fl_move1.gif"></p>
</blockquote>
<ul>
				<li>Spacing can be specified using the <b>
				<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane.html">Property Pane</a></b></li>
            </ul>
<blockquote>
	<p><img border="0" src="images/fl_properties_spacing.gif" align="top">&nbsp;
	<img border="0" src="images/fl_spacing.gif"></p>
</blockquote>
<ul>
				<li>Margins can be specified using the <b>
				<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane.html">Property Pane</a></b></li>
            </ul>
<blockquote>
	<p><img border="0" src="images/fl_properties_margins.gif" align="top">&nbsp;
	<img border="0" src="images/fl_margins.gif"></p>
</blockquote>
<ul>
				<li>Orientation can be specified using the <b>
				<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane.html">Property Pane</a></b></li>
            </ul>
<blockquote>
	<p><img border="0" src="images/fl_properties_type.gif" align="top">&nbsp;
	<img border="0" src="images/fl_type.gif"></p>
</blockquote>
          <p></p>
            <h2><a name="GraphicalFeedback"></a>Graphical Feedback</h2>
            <ul>
              <li>When moving a widget or adding a new widget, the current drop 
				point is highlighted in red<br>
				<br>
	<img border="0" src="images/fl_drop1.gif">&nbsp;
	<img border="0" src="images/fl_drop2.gif"><br>
				<img border="0" src="images/fl_move1.gif">&nbsp;
				<img border="0" src="images/fl_move2.gif"></li>
            </ul>
		</td>
	</tr>
</table>
</body>
</html>